<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="com.tangdi.Bean.*"%>
<%@ page language="java" import="com.tangdi.Utils"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script language="javascript" type="text/javascript"
	src="My97DatePicker/WdatePicker.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>工资代发数据核对</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
	h1 {font-family:Georgia;}
</style>
<script type="text/javascript">
	function check(){
		var form = document.getElementById('check_DFGZ_Total');
		var year_month = form.year_month.value;
		if(year_month !=""){
		   form.action="checkDF_Total_InfoAction";
		   }
		else{
		     alert("年月不能为空");
		     return;
		     }
		}
</script>
</head>
<jsp:include page="header.jsp"></jsp:include>
<body>
	<form onSubmit="return check()" method="post" id="check_DFGZ_Total">
		<table>
			<tr>
				<td width="70" style="text-align:right">年月：</td>
				<td width="70"><input class="Wdate" type="text" required="true" 
					name="year_month" onfocus="WdatePicker({dateFmt:'yyyyMM'})"
					value="${year_month}" /></td>
				<td width="70"></td>
				<td><input type="submit" value="查 询" /></td>
			</tr>
		</table>
	</form>

	<% 
		CZGZ_DWXX_TOTAL check_DFGZ_Total = new CZGZ_DWXX_TOTAL();
		check_DFGZ_Total =  (CZGZ_DWXX_TOTAL)session.getAttribute("check_DFGZ_Total");
	    String year_month = (String)session.getAttribute("year_month");%>
	<% 
    if(check_DFGZ_Total != null){
    %>
		<!-- <table border="1" align="left" cellpadding="10" cellspacing="0" id="check_DFGZ_Totalshow"> -->
		<table class="altrowstable" id="check_DFGZ_Totalshow">
			<tr class="evenrowcolor">
				<td width="100"><h4>应发笔数：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getTF_RS_TOTAL().replace(".00", "") %></td>
				<td width="100"><h4>应发合计：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getYF_GZ_TOTAL() %></td>
			</tr>
			<tr class="oddrowcolor">
				<td width="100"><h4>扣发笔数：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getTF_RS_TOTAL().replace(".00", "") %></td>
				<td width="100"><h4>扣发合计：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getDF_GZ_TOTAL() %></td>
			</tr>
			<tr class="evenrowcolor">
				<td width="100"><h4>实发笔数：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getTF_RS_TOTAL().replace(".00", "") %></td>
				<td width="100"><h4>实发合计：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getSF_GZ_TOTAL() %></td>
			</tr>
			<tr class="oddrowcolor">
				<td width="100"><h4>代发笔数：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getTF_RS_TOTAL().replace(".00", "") %></td>
				<td width="100"><h4>代发合计：</h4></td>
				<td width="100"><%=check_DFGZ_Total.getSF_GZ_TOTAL() %></td>
			</tr>
	</table>
	<% 
	}
    else{
	%>
	<p>未查到信息</p>
	<% }
   	%>
</body>
</html>
